GBML manual / 3D

view3d_colors

Sets the flat colors of the ceiling and the floor. Use color literals like #3A4A6A.

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_colors(ceiling, floor)

Arguments

NameType
ceilingcolor
floorcolor

Returns

Nothing.

Description

Sets the flat colors of the ceiling and the floor. Use color literals such as #3A4A6A.

It takes effect on the next frame and costs nothing: the two colors are entries of the picture's palette. The console keeps the top five bits of each part of a color, so #3A4A6A and #3B4B6B are the same color.

Example

view3d_start(ts_doc_walls);
view3d_colors(#303848, #6A5038);

A dark blue ceiling over a brown floor.

On the GBA

Takes effect at once, on the next frame, and costs nothing: the colors are two entries of the bitmap screen’s palette. The console keeps the top five bits of each byte of a color. A color changed this way stays until the view is started again.

See also: 3D viewview3d_start